import { Controller, Get, Post, Body, Patch, Param, Query, Request, Put, Delete } from '@nestjs/common';
import { ApiTags, ApiOperation, ApiBody, ApiConsumes, ApiQuery, ApiBearerAuth } from '@nestjs/swagger';
import { NoticeService } from './notice.service';
import { ListNoticeDto } from 'src/module/system/notice/dto';
import { NotRequireAuth } from 'src/module/system/user/user.decorator';

@ApiTags('移动端通知公告')
@Controller('mobile/notice')
export class NoticeController {
  constructor(private readonly noticeService: NoticeService) {}
  @ApiOperation({
    summary: '移动端通知公告-列表',
  })
  @ApiBody({
    required: true,
  })
  @NotRequireAuth()
  @Get('/list')
  findAll() {
    return this.noticeService.findAll({
      noticeType: '1',
      platformType: '2',
    });
  }
}
